package com.siants.common.application.controller;
/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author yanxin
 * @create 2018/1/18
 * @since 1.0.0
 */

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by yanxin on 2018/1/18.
 */
/*@Controller
@EnableAutoConfiguration*/
//@SpringBootApplication
/*@RestController
@EnableAutoConfiguration*/
@Controller
@EnableAutoConfiguration
public class HelloController {

    @RequestMapping("/hello")
    @ResponseBody
    String Hello() {
        return "Hello";
    }

    /*public static void main(String[] args) throws Exception {
        //通过SpringApplication的run()方法启动应用，无需额外的配置其他的文件
        SpringApplication.run(HelloController.class, args);
    }*/
}
